package ${package}.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
<#if table.hasBigDecimal!false>
import java.math.BigDecimal;
</#if>
<#if table.hasDate!false>
import java.time.LocalDate;
</#if>
<#if table.hasTime!false>
import java.time.LocalTime;
</#if>
<#if table.hasDateTime!false>
import java.time.LocalDateTime;
</#if>
<#if table.hasJSONObject!false>
import com.alibaba.fastjson.JSONObject;
</#if>

<@m.copyright>
 * (${table.name!})${table.comment!}
 *
</@m.copyright>
@Data
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ${table.name!} extends BaseModel<${table.idJavaType}> implements Serializable {
    private static final long serialVersionUID = ${table.serialUID};
<#list table.columns as column>
    <#if !column.isIgnored>
    /**
     * ${column.comment}
     **/
    private ${column.javaType} ${column.name};
    </#if>
</#list>
}